# -*- coding:utf-8 -*-
from PySide6.QtWidgets import (QHBoxLayout, QLabel, QLineEdit, QGroupBox)

class DelimiterGroup(QGroupBox):
    def __init__(self):
        """
        Excel文件名称中英文分隔符
        """
        super().__init__("Excel文件名称中英文分隔符设置")
        delimiter_layout = QHBoxLayout()
        # label
        delimiter_label = QLabel("Excel文件名分隔符:")
        delimiter_layout.addWidget(delimiter_label)
        # input
        self.delimiter_edit = QLineEdit()
        self.delimiter_edit.setPlaceholderText("_")
        self.delimiter_edit.setFixedWidth(30)
        delimiter_layout.addWidget(self.delimiter_edit)
        # label 
        delimiter_desc_label = QLabel("说明:excel文件名为Skill_技能配置,分隔符为_ 导出的文件只取分隔符前面的名字")
        delimiter_layout.addWidget(delimiter_desc_label)
        # 控件需固定在左侧，右侧留白
        delimiter_layout.addStretch()
        self.setLayout(delimiter_layout)